add_entrypoint_object(
  htonl
  SRCS
    htonl.cpp
  HDRS
    htonl.h
  DEPENDS
    libc.hdr.stdint_proxy
    libc.include.arpa_inet
    libc.src.__support.common
)

add_entrypoint_object(
  htons
  SRCS
    htons.cpp
  HDRS
    htons.h
  DEPENDS
    libc.hdr.stdint_proxy
    libc.include.arpa_inet
    libc.src.__support.common
)

add_entrypoint_object(
  inet_aton
  SRCS
    inet_aton.cpp
  HDRS
    inet_aton.h
  DEPENDS
    libc.include.arpa_inet
    libc.include.llvm-libc-types.in_addr
    libc.src.__support.common
    libc.src.__support.str_to_integer
)

add_entrypoint_object(
  inet_addr
  SRCS
    inet_addr.cpp
  HDRS
    inet_addr.h
  DEPENDS
    libc.include.arpa_inet
    libc.include.llvm-libc-macros.netinet_in_macros
    libc.include.llvm-libc-types.in_addr
    libc.include.llvm-libc-types.in_addr_t
    libc.src.__support.common
    libc.src.arpa.inet.inet_aton
)

add_entrypoint_object(
  ntohl
  SRCS
    ntohl.cpp
  HDRS
    ntohl.h
  DEPENDS
    libc.hdr.stdint_proxy
    libc.include.arpa_inet
    libc.src.__support.common
)

add_entrypoint_object(
  ntohs
  SRCS
    ntohs.cpp
  HDRS
    ntohs.h
  DEPENDS
    libc.hdr.stdint_proxy
    libc.include.arpa_inet
    libc.src.__support.common
)
